package net.kts.story.map;

import net.kts.story.StoryObjectHouse;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.os.Handler;

public class StoryMapLocationListener implements LocationListener{
	private StoryObjectHouse storyObjectHouse;
	private Handler handler;
	
	public StoryMapLocationListener(StoryObjectHouse storyObjectHouse) {
		super();
		this.handler = new Handler();
		this.storyObjectHouse = storyObjectHouse;
	}
	@Override
	public void onStatusChanged(String provider, int status, Bundle extras) {
	}
	@Override
	public void onProviderEnabled(String provider) {				
	}
	@Override
	public void onProviderDisabled(String provider) {
//		handler.post(new update(null));
	}
	@Override
	public void onLocationChanged(Location location) {
//		handler.post(new update(location));
	}
	final class update implements Runnable{
		private Location location;
		
		public update(Location location) {
			super();
			this.location = location;
		}
		@Override
		public void run() {
//			storyObjectHouse.updateWidthNewLocation();
		}
	}
}
